import Vue from 'vue'
import VueRouter from "vue-router";

const Home = () => import('view/home/Home')
const Car = () => import('view/cat/Car')
const Profile = () => import('view/profile/Profile')
const Catagory = () => import('view/catagory/Catagory')
const DetailShow = () => import('view/detail/DetailShow')

Vue.use(VueRouter);

const routes = [
    {
        path: '/home',
        component: Home,

    },
    {
        path: '/car',
        component: Car
    },
    {
        path: '/profile',
        component: Profile
    },
    {
        path: '/catagory',
        component: Catagory
    },
    {
        path:'/detail/:iid',
        component:DetailShow
    }
];

const router = new VueRouter({
    routes,
    mode: 'history'
})

export default router;
